﻿@model List<Joomiz.ReleaseCalendar.Models.CalendarItem>
@{
    ViewBag.Title = "Listar";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}


<link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" />



<h2>Listar</h2>

<table class="table table-bordered">
    <thead>
        <tr>
            <th>Nome do calendário</th>
            <th>Ano</th>
            <th>Data cadastro</th>
        </tr>
    </thead>
    <tbody>
        @foreach (Joomiz.ReleaseCalendar.Models.CalendarItem c in Model) { 
        <tr>
            <td><a href="@Url.Action("Detalhes", "Calendario", new { id = c.Id, description = c.Name })">@c.Name</a></td>
            <td>@c.Year</td>
            <td>@c.DateCreated</td>
        </tr>
        }
    </tbody>

</table>